//
// 作者：AKA_GGbond
// 时间：2025/7/17
// 邮箱：evain_wl@163.com
//

#ifndef ESMU_W_SQL_H
#define ESMU_W_SQL_H

#include <QObject>

#define W_SqlIns W_Sql::Instance()

class W_Sql : public QObject
{
    Q_OBJECT
public:
    explicit W_Sql(QObject *parent = nullptr);
    ~W_Sql();

    static W_Sql *Instance();

public:
    bool Search(const QString &sql);
    bool executSQL(const QString &sql);

private:
    void initSql();

    void createDb();

private:
    QString m_conn_name{""};
};


#endif //ESMU_W_SQL_H
